<!DOCTYPE html>
<html lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport"
		content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
	<meta name="format-detection" content="telephone=no" />
	<meta name="format-detection" content="email=no" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache-Control" content="no-cache" />
	<meta http-equiv="Expires" content="0" />
	<title>患者档案-糖尿病并发症</title>
	<!-- 引入 vant UI 组件库样式文件 -->
	<link rel="stylesheet" href="../../common/css/vant-index.css" />
	<style rel="stylesheet">
		body {
			background-color: #f7f8fa;
		}

		a {
			-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		}

		a:-webkit-any-link {
			color: #eee;
		}

		.container {
			border: 1px solid #f5f5f5;
			box-shadow: -1px 5px 5px #ececec;
			border-radius: 10px;
			/* margin: 0.6rem; */
			padding: 0;
		}

		#sub-title {
			margin-top: 0.5rem;
			margin-bottom: 0.5rem;
			margin-left: 1rem;
		}

		.icon {
			display: inline-block;
			background-color: #E22E30;
			width: 0.5rem;
			height: 0.5rem;
			margin-right: 0.5rem;
		}

		.text {
			display: inline-block;
			font-size: 1.1rem;
			font-weight: 450;
			color: #555555;
		}

		.van-cell-group--inset {
			margin: 0;
		}

		.van-cell__title {
			flex: 1;
		}

		.tab-btn {
			margin: 0.2rem;
			height: 1.7rem;
			line-height: 1.7rem;
		}
	</style>
</head>

<body>
	<div id="app" v-cloak>
		<div class="container">
			<van-nav-bar title="糖尿病并发症" left-text="返回" left-arrow @click-left="onClickLeft" @click-right="onClickRight">
				<template #right>
					<van-icon name="wap-home-o" size="18" />
				</template>
			</van-nav-bar>
			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">糖尿病肾病</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.nephropathy == 1
						? '确诊有' : currentData.nephropathy == 2
						? '未确诊' : currentData.nephropathy == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.nephropathyDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">尿蛋白</span>
					</template>
					<template #value>
						{{currentData.nephropathyUrineProtein}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">ACR</span>
					</template>
					<template #value>
						{{currentData.nephropathyAcr}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">GFR(Cr)</span>
					</template>
					<template #value>
						{{currentData.nephropathyGfr}}
					</template>
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">糖尿病视网膜病变</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.retinopathy == 1
						? '确诊有' : currentData.retinopathy == 2
						? '未确诊' : currentData.retinopathy == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.retinopathyDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">检查日期</span>
					</template>
					<template #value>
						{{currentData.retinopathyExamDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">病变分期</span>
					</template>
					<template #value>
						{{currentData.retinopathyStaging == 1
						? '增殖性视网膜病变' : currentData.retinopathyStaging == 2
						? '非增殖性视网膜病变（轻度）' : currentData.retinopathyStaging == 3
						? '非增殖性视网膜病变（中度）' : currentData.retinopathyStaging == 4
						? '非增殖性视网膜病变（重度）' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">黄斑水肿</span>
					</template>
					<template #value>
						{{currentData.retinopathyMe == 1
						? '无': currentData.retinopathyMe == 2
						? '轻度（1度）' : currentData.retinopathyMe == 3
						? '中度（2度）' : currentData.retinopathyMe == 4
						? '重度（3度）' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<span class="custom-title">症状</span>
					<br>
					<div v-if="currentData.retinopathySymptom != null">
						{{currentData.retinopathySymptom.indexOf('1') != -1 ? '飞蚊症' : ''}}
						{{currentData.retinopathySymptom.indexOf('2') != -1 ? '闪光感' : ''}}
						{{currentData.retinopathySymptom.indexOf('3') != -1 ? '失明/视力突然下降' : ''}}
						{{currentData.retinopathySymptom.indexOf('4') != -1 ? '视物变形' : ''}}
					</div>
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">视力（左）</span>
					</template>
					<template #value>
						{{currentData.retinopathyVision}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">视力（右）</span>
					</template>
					<template #value>
						{{currentData.retinopathyVisionRight}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">微动脉瘤</span>
					</template>
					<template #value>
						{{currentData.retinopathyMicroaneurysm == 1
						? '有' : currentData.retinopathyMicroaneurysm == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">视网膜内出血</span>
					</template>
					<template #value>
						{{currentData.retinopathyIntraRetinal == 1
						? '有(任一象限中&lt;20处)' : currentData.retinopathyIntraRetinal == 2
						? '有(任一象限中&gt;=20处)' : currentData.retinopathyIntraRetinal == 3
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">棉絮斑</span>
					</template>
					<template #value>
						{{currentData.retinopathyFlock == 1
						? '有' : currentData.retinopathyFlock == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">硬性渗出</span>
					</template>
					<template #value>
						{{currentData.retinopathyExudate == 1
						? '有(非后极区)' : currentData.retinopathyExudate == 2
						? '有(后极区)' : currentData.retinopathyExudate == 3
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">静脉串珠样改变</span>
					</template>
					<template #value>
						{{currentData.retinopathyBeading == 1
						? '有(&lt;=2个象限)' : currentData.retinopathyBeading == 2
						? '有(&gt;2个象限)' : currentData.retinopathyBeading == 3
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">视网膜内微血管异常</span>
					</template>
					<template #value>
						{{currentData.retinopathyMicrovascular == 1
						? '有(&lt;=1个象限)' : currentData.retinopathyMicrovascular == 2
						? '有(&gt;1个象限)' : currentData.retinopathyMicrovascular == 3
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">玻璃体积血</span>
					</template>
					<template #value>
						{{currentData.retinopathyVitreous == 1
						? '有' : currentData.retinopathyVitreous == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">新生血管形成</span>
					</template>
					<template #value>
						{{currentData.retinopathyNeovascularization == 1
						? '有' : currentData.retinopathyNeovascularization == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">视网膜前出血</span>
					</template>
					<template #value>
						{{currentData.retinopathyAnteriorRetinal == 1
						? '有' : currentData.retinopathyAnteriorRetinal == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">眼底出血</span>
					</template>
					<template #value>
						{{currentData.retinopathyFundusHemorrhage == 1
						? '有' : currentData.retinopathyFundusHemorrhage == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">后极部视网膜增厚</span>
					</template>
					<template #value>
						{{currentData.retinopathyRetinalThickening == 1
						? '有' : currentData.retinopathyRetinalThickening == 2
						? '无' : '--'}}
					</template>
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">糖尿病周围神经病变</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.peripheral == 1
						? '确诊有' : currentData.peripheral == 2
						? '未确诊' : currentData.peripheral == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.peripheralDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">神经传导功能检查（NCV）</span>
					</template>
					<template #value>
						{{currentData.peripheralConduction == 1
						? '正常' : currentData.peripheralConduction == 2
						? '缺失' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">振动觉</span>
					</template>
					<template #value>
						{{currentData.peripheralVibration == 1
						? '正常' : currentData.peripheralVibration == 2
						? '缺失' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">针刺痛觉</span>
					</template>
					<template #value>
						{{currentData.peripheralAcupuncture == 1
						? '正常' : currentData.peripheralAcupuncture == 2
						? '缺失' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">压力觉</span>
					</template>
					<template #value>
						{{currentData.peripheralPressure == 1
						? '正常' : currentData.peripheralPressure == 2
						? '缺失' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">踝反射</span>
					</template>
					<template #value>
						{{currentData.peripheralAnkle == 1
						? '正常' : currentData.peripheralAnkle == 2
						? '缺失' : currentData.peripheralAnkle == 3
						? '减弱' : currentData.peripheralAnk == 4
						? '亢进' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">温度觉</span>
					</template>
					<template #value>
						{{currentData.peripheralTemperature == 1
						? '正常' : currentData.peripheralTemperature == 2
						? '缺失' : '--'}}
					</template>
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">心血管自主神经病变</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.cardiovascular == 1
						? '确诊有' : currentData.cardiovascular == 2
						? '未确诊' : currentData.cardiovascular == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.cardiovascularDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">心率变异性检查</span>
					</template>
					<template #value>
						{{currentData.cardiovascularVariability == 1
						? '正常' : currentData.cardiovascularVariability == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">Valasalva试验</span>
					</template>
					<template #value>
						{{currentData.cardiovascularValasalva == 1
						? '正常' : currentData.cardiovascularValasalva == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">体位性低血压测定</span>
					</template>
					<template #value>
						{{currentData.cardiovascularHypotension == 1
						? '正常' : currentData.cardiovascularHypotension == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">24h动态血压监测</span>
					</template>
					<template #value>
						{{currentData.cardiovascularMonitoring24 == 1
						? '正常' : currentData.cardiovascularMonitoring24 == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">握拳试验</span>
					</template>
					<template #value>
						{{currentData.cardiovascularFist == 1
						? '收缩压升高&gt;10mmHg' : currentData.cardiovascularFist == 2
						? '收缩压升高&lt;=10mmHg' : '--'}}
					</template>
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">消化系统自主神经病变</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.digestive == 1
						? '确诊有' : currentData.digestive == 2
						? '未确诊' : currentData.digestive == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.digestiveDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">胃电图</span>
					</template>
					<template #value>
						{{currentData.digestiveElectrogastrogram == 1
						? '正常' : currentData.digestiveElectrogastrogram == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">直肠局部末梢神经病变电生理检查</span>
					</template>
					<template #value>
						{{currentData.digestiveRectum == 1
						? '正常' : currentData.digestiveRectum == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">胃排空闪烁图扫描</span>
					</template>
					<template #value>
						{{currentData.digestiveScintillation == 1
						? '正常' : currentData.digestiveScintillation == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">食道测压</span>
					</template>
					<template #value>
						{{currentData.digestiveSophageal == 1
						? '正常' : currentData.digestiveSophageal == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">泌尿生殖系统自主神经病变</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.genitourinary == 1
						? '确诊有' : currentData.genitourinary == 2
						? '未确诊' : currentData.genitourinary == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.genitourinaryDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">膀胱容量</span>
					</template>
					<template #value>
						{{currentData.genitourinaryBladder == 1
						? '正常' : currentData.genitourinaryBladder == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">神经传导速度检查</span>
					</template>
					<template #value>
						{{currentData.genitourinaryNerve == 1
						? '正常' : currentData.genitourinaryNerve == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">其它自主神经病变</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.otherneuropathy == 1
						? '确诊有' : currentData.otherneuropathy == 2
						? '未确诊' : currentData.otherneuropathy == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.otherneuropathyDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">并发症名称</span>
					</template>
					<template #value>
						{{currentData.otherneuropathyName}}
					</template>
				</van-cell>
				<van-cell>
					<span class="custom-title">检测项目及结果</span>
					<br>
					{{currentData.otherneuropathyItem}}
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">糖尿病下肢血管病变</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.extremity == 1
						? '确诊有' : currentData.extremity == 2
						? '未确诊' : currentData.extremity == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.extremityDate}}
					</template>
				</van-cell>
				<van-cell>
					<span class="custom-title">症状</span>
					<br>
					<div v-if="currentData.extremitySymptom != null">
						{{currentData.extremitySymptom.indexOf('1') != -1 ? '间歇性跛行' : ''}}
						{{currentData.extremitySymptom.indexOf('2') != -1 ? '静息痛' : ''}}
						{{currentData.extremitySymptom.indexOf('3') != -1 ? '下肢缺血性溃疡或坏疽' : ''}}
					</div>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">颈动脉听诊</span>
					</template>
					<template #value>
						{{currentData.extremityCarotid == 1
						? '有杂音' : currentData.extremityCarotid == 2
						? '无杂音' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">股动脉听诊</span>
					</template>
					<template #value>
						{{currentData.extremityFemoral == 1
						? '有杂音' : currentData.extremityFemoral == 2
						? '无杂音' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">间歇性跛行试验</span>
					</template>
					<template #value>
						{{currentData.extremityClaudication == 1
						? '阳性' : currentData.extremityClaudication == 2
						? '阴性' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">皮肤温度测定</span>
					</template>
					<template #value>
						{{currentData.extremitySkin == 1
						? '正常' : currentData.extremitySkin == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">ABI</span>
					</template>
					<template #value>
						{{currentData.extremityAbi == 1
						? '&lt;0.9' : currentData.extremityAbi == 2
						? '0.9&lt;=ABI&lt;=1.3' : currentData.extremityAbi == 3
						? '&lt;1.3' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">ABI运动负载试验</span>
					</template>
					<template #value>
						{{currentData.extremityAbiexercise == 1
						? '0.9&lt;=ABI&lt;=1.3' : currentData.extremityAbiexercise == 2
						? '下降15%～20%' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">足背/胫后动脉检查</span>
					</template>
					<template #value>
						{{currentData.extremityDorsalandposterior == 1
						? '正常' : currentData.extremityDorsalandposterior == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">下肢血管CTA/DSA/MR/B超</span>
					</template>
					<template #value>
						{{currentData.extremityVessel == 1
						? '正常' : currentData.extremityVessel == 2
						? '提示血管病变' : currentData.extremityVessel == 3
						? '其它' : '--'}}
					</template>
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">糖尿病足</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.dfoot == 1
						? '确诊有' : currentData.dfoot == 2
						? '未确诊' : currentData.dfoot == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.dfootDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">溃疡</span>
					</template>
					<template #value>
						{{currentData.dfootUlcer == 1
						? '浅表溃疡' : currentData.dfootUlcer == 2
						? '较深溃疡' : currentData.dfootUlcer == 3
						? '深度溃疡' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">坏疽</span>
					</template>
					<template #value>
						{{currentData.dfootGangrene == 1
						? '局限性坏疽' : currentData.dfootGangrene == 2
						? '全足坏疽' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">感染</span>
					</template>
					<template #value>
						{{currentData.dfootInfected == 1
						? '有' : currentData.dfootInfected == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">足X线</span>
					</template>
					<template #value>
						{{currentData.dfootXray}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">软组织炎</span>
					</template>
					<template #value>
						{{currentData.dfootParenchyma == 1
						? '有' : currentData.dfootParenchyma == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">脓肿</span>
					</template>
					<template #value>
						{{currentData.dfootAbscess == 1
						? '有' : currentData.dfootAbscess == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">骨组织感染</span>
					</template>
					<template #value>
						{{currentData.dfootBone == 1
						? '有' : currentData.dfootBone == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">溃疡组织培养+药敏试验</span>
					</template>
					<template #value>
						{{currentData.dfootUlcerative}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">脓肿/骨髓炎</span>
					</template>
					<template #value>
						{{currentData.dfootOsteomyelitis == 1
						? '有' : currentData.dfootOsteomyelitis == 2
						? '无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">ABI</span>
					</template>
					<template #value>
						{{currentData.dfootAbi}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">下肢血管B超</span>
					</template>
					<template #value>
						{{currentData.dfootExtremityb == 1
						? '正常' : currentData.dfootExtremityb == 2
						? '提醒下肢血管病变' : currentData.dfootExtremityb == 3
						? '其它' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">神经传导功能</span>
					</template>
					<template #value>
						{{currentData.dfootNerve == 1
						? '正常' : currentData.dfootNerve == 2
						? '异常' : '--'}}
					</template>
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">酮症酸中毒</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.dka == 1
						? '确诊有' : currentData.dka == 2
						? '未确诊' : currentData.dka == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.dkaIsDate}}
					</template>
				</van-cell>
				<van-cell>
					<span class="custom-title">症状</span>
					<br>
					<div v-if="currentData.dkaSymptom != null">
						{{currentData.dkaSymptom.indexOf('1') != -1 ? '多尿' : ''}}
						{{currentData.dkaSymptom.indexOf('2') != -1 ? '多饮' : ''}}
						{{currentData.dkaSymptom.indexOf('3') != -1 ? '多食' : ''}}
						{{currentData.dkaSymptom.indexOf('4') != -1 ? '体重减轻或呕吐或虚弱无力（以上症状加重）' : ''}}
						{{currentData.dkaSymptom.indexOf('5') != -1 ? '腹痛' : ''}}
						{{currentData.dkaSymptom.indexOf('6') != -1 ? '脱水' : ''}}
						{{currentData.dkaSymptom.indexOf('7') != -1 ? '深大呼吸或呼出气体有烂苹果味' : ''}}
						{{currentData.dkaSymptom.indexOf('8') != -1 ? '意识模糊或昏迷' : ''}}
					</div>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">血酮体</span>
					</template>
					<template #value>
						{{currentData.dkaIsBloodKetone}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">血气分析</span>
					</template>
					<template #value>
						{{currentData.dkaIsBloodGas}}
					</template>
				</van-cell>
			</van-cell-group>

			<div id="sub-title">
				<div class="icon"></div>
				<div class="text">糖尿病高渗综合症(HHS)</div>
			</div>
			<van-cell-group inset>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊情况</span>
					</template>
					<template #value>
						{{currentData.hhs == 1
						? '确诊有' : currentData.hhs == 2
						? '未确诊' : currentData.hhs == 3
						? '确诊无' : '--'}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">确诊日期</span>
					</template>
					<template #value>
						{{currentData.hhsDate}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">随机血糖</span>
					</template>
					<template #value>
						{{currentData.hhsRandomSugar}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">电解质(Na+)</span>
					</template>
					<template #value>
						{{currentData.hhsNa}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">电解质(K+)</span>
					</template>
					<template #value>
						{{currentData.hhsK}}
					</template>
				</van-cell>
				<van-cell>
					<template #title>
						<span class="custom-title">血浆渗透压</span>
					</template>
					<template #value>
						{{currentData.hhsOpp}}
					</template>
				</van-cell>
			</van-cell-group>
		</div>
	</div>
</body>
<!-- 上线环境用 -->
<script src="../../common/js/vue.global.prod.js"></script>
<!-- 引入 UI 组件库 -->
<script src="../../common/js/vant.min.js"></script>
<!-- axios 接口调用 -->
<script src="../../common/js/axios.min.js"></script>
<script src="../../base.js"></script>

<script type="module">
	import {
		getAction,
		postAction,
		getUrl,
	} from "../../common/js/api/vue3-axios-utils.js";
	const PatientData = {
		data() {
			return {
				url: {
					getInfo: "/102/16/1021602",
					updateInfo: "/102/16/1021601",
				},
				currentData: {},
				patient_url: "../index.html?userid=",
			};
		},
		created() {
			this.getData().catch((error) => {
				console.log(error);
			});
		},
		methods: {
			async getData() {
				let patientId = localStorage.pid;

				this.patient_url = this.patient_url + patientId;

				let url =
					getUrl() + this.url.getInfo + "?patientId=" + patientId;

				const res = await getAction(url);

				const timeHandle = (str) => {
					if (str == null) return str;
					return str.slice(0, 10);
				};

				if (res.data.success) {
					this.currentData = await res.data.result;

					// 时间处理
					let dateRegex =
						/\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])/g;

					for (let property in this.currentData) {
						if (dateRegex.test(this.currentData[property])) {
							this.currentData[property] =
								this.currentData[property].match(
									dateRegex
								)[0];
						}
					}
				}
			},
			onClickLeft() {
				window.location.href = "../filesIndex.html";
			},
			onClickRight() {
				window.location.href =
					"../index.html?userid=" + localStorage.pid;
			},
		},
	};

	const app = Vue.createApp(PatientData);

	app.use(vant);

	// 通过 CDN 引入时不会自动注册 Lazyload 组件
	// 可以通过下面的方式手动注册
	app.use(vant.Lazyload);

	// 调用函数组件，弹出一个 Toast
	// vant.Toast("刷新成功");

	app.mount("#app");
</script>

</html>